package cn.aopmin.service;

import cn.aopmin.api.HelloService;
import org.apache.dubbo.config.annotation.DubboService;

import java.time.LocalDateTime;
import java.util.HashMap;

/**
 * dubbo接口实现类
 * @author aopmin
 * @since 2024/12/29
 */
@DubboService
public class HelloSericeImpl implements HelloService {
    @Override
    public String getMsg() {
        return new HashMap<String,Object>(){{
            put("status","200");
            put("msg","Hello Dubbo!");
            put("datetime", LocalDateTime.now());
        }}.toString();
    }
}